package genericite;

public class Solo<T>
{

  T valeur;
  
  
  
  public T getValeur()
  {
    return valeur;
  }



  public void setValeur(T valeur)
  {
    this.valeur = valeur;
  }

  public Solo(){
    
  }
  public Solo(T val){
    setValeur(val);
  }
  public static void main(String[] args)
  {
    Solo<Integer> val = new Solo<Integer>(12);
    Solo<String> valS = new Solo<String>("TOTOTOTO");
    int nbre = val.getValeur();
    String str= valS.getValeur();
    int i = new Integer(1542); 
    System.out.println(i);
  }

}
